{include file=member.header.html}
<script type="text/javascript">
    $(function() {
        $('#add_time_from').datepicker({dateFormat: 'yy-mm-dd'});
        $('#add_time_to').datepicker({dateFormat: 'yy-mm-dd'});
    });
</script>
<style type="text/css">
    .float_right {float: right;}
</style>
<div class="content">
    {include file=member.menu.html}
    <div id="right">
        {include file=member.curlocal.html}
        {include file=member.submenu.html}
        <div class="wrap">
            <div class="public table">
                <div class="user_search">
                    <form method="get">
                        <span>{$lang.order_sn}:</span>
                        <input type="text" class="text1 width8" width="30" name="order_sn" value="{$query.order_sn|escape}">
                        <select class="querySelect" name="type">
                            <option value="">{$lang.search_types}</option>
                            {html_options options=$account_type_list selected=$smarty.get.type}
                        </select>
                        <select class="querySelect" name="complete">
                            <option value="">{$lang.complete_list}</option>
                            {html_options options=$complete_list selected=$smarty.get.complete}
                        </select>
                        <span>{$lang.time}: </span>
                        <input type="text" class="text1 width2" name="add_time_from" id="add_time_from" value="{$query.add_time_from}"/> &#8211;
                        <input type="text" class="text1 width2" name="add_time_to" id="add_time_to" value="{$query.add_time_to}"/>
                        <input type="hidden" name="app" value="account_log" />
                        <input type="hidden" name="act" value="logall" />
                        <input type="submit" class="btn" value="{$lang.so_so}" />
                        <!--{if $filtered}-->
                        <a class="detlink float_right" href="{url app=account_log&act=logall}">{$lang.cancel_query}</a>
                        <!--{/if}-->
                    </form>
                </div>
                
                <table>
                    <!--{if $account_log_list}-->
                    <tr class="line gray">
                        <th width="10%">{$lang.order_sn}</th>
                        <th width="15%" align="center">{$lang.time}</th>
                        <th width="45%">{$lang.caozuorizhi}</th>
                        <th width="10%">{$lang.type_name}</th>
                        <th width="10%">{$lang.money}</th>
                        <th width="10%" align="center">{$lang.zhuangtai}</th>
                    </tr>
                    <!--{/if}-->
                    <!--{foreach from=$account_log_list item=account_log name=v}-->
                    <tr class="line <!--{if $smarty.foreach.v.last}-->last_line<!--{/if}-->">
                        <td align="center">{$account_log.order_sn|escape}</td>
                        <td align="center">{$account_log.add_time|date:Y-m-d H:i}</td>
                        <td align="center">{$account_log.log_text|escape}</td>
                        <td align="center">{$account_log.type_name|escape}</td>
                        <td align="center">{if $account_log.money_flow eq 'income'}{$lang.income}{else}{$lang.expend}{/if}{$account_log.money}{$account_log.yuan}</td>
                        <td align="center"><!--{if $account_log.complete==0}-->{$lang.uncomplete}<!--{else}-->{$lang.oncomplete}<!--{/if}--></td>
                    </tr>
                    <!--{foreachelse}-->
                    <tr>
                        <td colspan="6" class="member_no_records">{$lang.$smarty.get.act}{$lang.no_records}</td>
                    </tr>
                    <!--{/foreach}-->
                </table>
                {include file=member.page.bottom.html}
            </div>
        </div>
        <div class="clear"></div>
    </div>
    <div class="clear"></div>
</div>
<div class="clear"></div>
{include file=footer.html}
